﻿using Client.Enum;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.Model
{
    public class ViewUser : BindableBase
    {
        public int ID { get; set; }

        public int OrgId { get; set; }

        //public string OrgName { get; set; }
        private string orgName;

        public string OrgName
        {
            get { return orgName; }
            set
            {
                orgName = value;
                RaisePropertyChanged("OrgName");
            }
        }


        public ViewRole Role { get; set; }

        //private ViewRole role;

        //public ViewRole Role
        //{
        //    get { return role; }
        //    set
        //    {
        //        role = value;
        //        RaisePropertyChanged("Role");
        //    }
        //}


        //public string LoginName { get; set; }
        private string loginName;

        public string LoginName
        {
            get { return loginName; }
            set
            {
                loginName = value;
                RaisePropertyChanged("LoginName");
            }
        }


        public string Password { get; set; }

        //public DataStatus Status { get; set; } = DataStatus.有效;
        private DataStatus status = DataStatus.有效;

        public DataStatus Status
        {
            get { return status; }
            set
            {
                status = value;
                RaisePropertyChanged("Status");
            }
        }


        public int Sort { get; set; }

        public string Creator { get; set; }

        public string CreateTime { get; set; }

        public string Updator { get; set; }

        public string UpdateTime { get; set; }

    }
}
